﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Budget.DataAccess;

namespace Budget.WCF
{
	// NOTE: If you change the interface name "IMthService" here, you must also update the reference to "IMthService" in App.config.
	[ServiceContract]
	public interface IMthService
	{
		[OperationContract]
		IList<Mth> GetAll();

		[OperationContract]
		Mth GetMthById( int mthId );

		[OperationContract]
		Mth GetByMonthAndYear( int month, int year );

		[OperationContract]
		void Save( Mth month );

		[OperationContract]
		bool DoesMonthYearExist( int month, int year );

		[OperationContract]
		Mth GetPreviousMonth( int mthId );
	}
}
